package com.yand.mapper.system;

import com.yand.api.entity.system.TSysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface TSysMenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TSysMenu record);

    int insertSelective(TSysMenu record);

    TSysMenu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TSysMenu record);

    int updateByPrimaryKey(TSysMenu record);

    //根据角色ID获取菜单列表，如果cord为0 则获取所有的菜单
    List<TSysMenu> queryMenuList();

}